import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'element-ui'
import {Button, MessageBox} from "element-ui";
import {Form,FormItem} from "element-ui";
import {Input} from "element-ui";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/fonts/iconfont.css'
import {Message} from 'element-ui'
import VueQuillEditor from 'vue-quill-editor'
Vue.config.productionTip=false
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.prototype.$message=Message
Vue.prototype.$confirm=MessageBox.confirm
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
Vue.use(VueQuillEditor)
Vue.filter('dateFormat', function(originVal) {
  const dt = new Date(originVal)

  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
  const d = (dt.getDate() + '').padStart(2, '0')

  const hh = (dt.getHours() + '').padStart(2, '0')
  const mm = (dt.getMinutes() + '').padStart(2, '0')
  const ss = (dt.getSeconds() + '').padStart(2, '0')

  return `${y}-${m}-${d} ${hh}:${mm}:${ss}`
})
